package com.tceasy.gateway.api;

public class BusinessFailException extends RuntimeException {
    private Response response;

    public BusinessFailException(String message) {
		super(message);
        this.response=Response.BUSINESS_FAIL().msg(message);
	}

    public BusinessFailException(Response response){
        this.response=response;
    }

    public String toJson(){
        return response.toJson();
    }

    public Response getResponse() {
        return response;
    }

    public void setResponse(Response response) {
        this.response = response;
    }

}
